package com.fs.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fs.pojo.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 订单表
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    Map<String, Object> getById(Integer id);

    List<Order> getAll(Map<String, Object> map);

    Long getAllTotal(Map<String, Object> map);

    List<Order> getUnPay(Map<String, Object> map);

    Long getUnPayTotal(Map<String, Object> map);

    List<Order> getHavePay(Map<String, Object> map);

    Long getHavePayTotal(Map<String, Object> map);

    List<Order> getHaveDliv(Map<String, Object> map);

    Long getHaveDlivTotal(Map<String, Object> map);
}
